#!/usr/bin/env node
const http =require('http'),
      log=console.log;
http.createServer((req,res)=>{
  if(req.url!=='/'){
    res.statusCode=404;
    res.end('<h1>not found</h1>');
    return ;
  }
  req.pipe(process.stdout);
  res.end('ok');
}).listen(8080);









